/*
 * SDLPlayer.cpp
 *
 *  Created on: Dec 12, 2010
 *      Author: timmeh
 */

#include "SDLPlayer.h"
#include "SDLResource.h"
#include <iostream>
using namespace std;
#define res SDLResource::Instance()

namespace bo_sdl {

SDLPlayer::SDLPlayer(const char* playerName, const int amOfLives)
	:Player(playerName, amOfLives){

}

void SDLPlayer::Visualize(){
	res->DrawHUDRect();
	string finalStr = "Player name: " + string(this->GetName()) + " Score: " + string(this->GetScoreString())
							+ " Lives left: " + string(this->GetLivesLeftString());
	res->DrawText(finalStr.c_str());
	res->FlipScreen();
	res->ClearBackBuffer();
}

}
